//
//  ExhibitionObject.h
//  HAODE
//
//  Created by LiYinDi on 16/4/8.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
@protocol TestDelegate;
//首先创建一个实现了JSExport协议的协议
@protocol TestJSObjectProtocol <JSExport>

//此处我们测试几种参数的情况

-(void)go:(NSString *)string1 List:(NSString *)message2;
-(void)go:(NSString *)string1 PageItem:(NSString *)message2;
-(void)gotoItemDetail:(NSString *)itemID ;
//-(void)TestOneParameter:(NSString *)message;
@end

@interface ExhibitionObject : NSObject<TestJSObjectProtocol>
@property(nonatomic,weak) id<TestDelegate> delegate;
@end
@protocol TestDelegate <NSObject>
@optional

-(void)itemClick:(NSString *)url;
-(void)pageItem:(NSString *)url;
-(void)productDetail:(NSString *)itemID;
 @end